package com.tz.fruit.dao.OrderDao;

import com.tz.fruit.entity.Order;
import com.tz.fruit.entity.OrderItem;
import com.tz.fruit.entity.OrderStatus;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/7/19.
 */

public interface OrderDao {
    public List<Order> findAll();

    public  void  save(OrderItem orderItem);

    public void  deleteById(Long id);
    //查询符合条件的总条数
    public  Long  findBy(Long uid, String orderNo, Date start, Date end, OrderStatus status);
    //查询符合条件的order集合
    public  List<Order> findByConditions(Long uid, String orderNo, Date start, Date end, String pageNow, String pageSize, OrderStatus status);

}


